using System;
using System.Collections.Generic;
using System.Text;

namespace ClientTools.Client.Controls
{
    class ControlInfoComparer: IComparer<ControlInfo>
    {
        #region IComparer<ControlInfo> Member

        public int Compare(ControlInfo x, ControlInfo y)
        {
            if (x.Sort < y.Sort)
            {
                return -1;
            }
            if (x.Sort > y.Sort)
            {
                return 1;
            }
            return 0;
        }

        #endregion
    }
}
